<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>crc - ClueLib</title><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script><script language=JavaScript src="../javascript/prettify.js"></script></head><body class="FramedContentPage" onLoad="NDOnLoad();prettyPrint();"><script language=JavaScript><!--
if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>

<!--  Generated by Natural Docs, version 1.52 -->
<!--  http://www.naturaldocs.org  -->

<!-- saved from url=(0026)http://www.naturaldocs.org -->




<div id=Content><div class="CClass"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="crc"></a>crc</h1><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>virtual class crc #(</td><td class="PType  prettyprint " nowrap>type&nbsp;</td><td class="PParameter  prettyprint " nowrap>T</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;=&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%> bit</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="virtual">virtual</span> Provides functions to calculate a variety of CRC (cyclic redundancy check) values from a bit stream.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>T</td><td class=CDLDescription><span class="optional">optional</span> The type of the bit stream to calculate the CRC.&nbsp; The type <b>T</b> must be <b>bit</b>, <b>logic</b>, or <b>reg</b>.&nbsp;  The default type is <b>bit</b>.</td></tr></table><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#crc" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">crc</a></td><td class=SDescription><span class="virtual">virtual</span> Provides functions to calculate a variety of CRC (cyclic redundancy check) values from a bit stream.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#crc.Types" >Types</a></td><td class=SDescription></td></tr><tr class="SType SIndent2 SMarked"><td class=SEntry><a href="#crc.bs_type" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">bs_type</a></td><td class=SDescription>The bit stream type. </td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#crc.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#crc.crc" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">crc</a></td><td class=SDescription><span class="static">static</span> Returns a CRC value using the specified taps. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#crc.crc1" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">crc1</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-1 value; also known as a parity bit. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#crc.crc4_itu" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">crc4_itu</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-4-ITU value. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#crc.crc5_epc" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')">crc5_epc</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-5-EPC value. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#crc.crc5_itu" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')">crc5_itu</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-5-ITU value. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#crc.crc5_usb" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')">crc5_usb</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-5-USB value. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#crc.crc6_cdma2000_a" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')">crc6_cdma2000_a</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-6-CDMA2000-A value. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#crc.crc6_cdma2000_b" id=link10 onMouseOver="ShowTip(event, 'tt10', 'link10')" onMouseOut="HideTip('tt10')">crc6_cdma2000_b</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-6-CDMA2000-B value. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#crc.crc6_itu" id=link11 onMouseOver="ShowTip(event, 'tt11', 'link11')" onMouseOut="HideTip('tt11')">crc6_itu</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-6-ITU value. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#crc.crc7" id=link12 onMouseOver="ShowTip(event, 'tt12', 'link12')" onMouseOut="HideTip('tt12')">crc7</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-7 value. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#crc.crc7_mvb" id=link13 onMouseOver="ShowTip(event, 'tt13', 'link13')" onMouseOut="HideTip('tt13')">crc7_mvb</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-7-MVB value. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#crc.crc8" id=link14 onMouseOver="ShowTip(event, 'tt14', 'link14')" onMouseOut="HideTip('tt14')">crc8</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-8 value. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#crc.crc8_ccitt" id=link15 onMouseOver="ShowTip(event, 'tt15', 'link15')" onMouseOut="HideTip('tt15')">crc8_ccitt</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-8-CCITT value. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#crc.crc8_dallas_maxim" id=link16 onMouseOver="ShowTip(event, 'tt16', 'link16')" onMouseOut="HideTip('tt16')">crc8_dallas_maxim</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-8-Dallas/Maxim value. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#crc.crc8_sae_j1850" id=link17 onMouseOver="ShowTip(event, 'tt17', 'link17')" onMouseOut="HideTip('tt17')">crc8_sae_j1850</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-8-SAE-J1850 value. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#crc.crc8_wcdma" id=link18 onMouseOver="ShowTip(event, 'tt18', 'link18')" onMouseOut="HideTip('tt18')">crc8_wcdma</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-8-WCDMA value. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#crc.crc10" id=link19 onMouseOver="ShowTip(event, 'tt19', 'link19')" onMouseOut="HideTip('tt19')">crc10</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-10 value. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#crc.crc10_cdma2000" id=link20 onMouseOver="ShowTip(event, 'tt20', 'link20')" onMouseOut="HideTip('tt20')">crc10_cdma2000</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-10-CDMA2000 value. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#crc.crc11" id=link21 onMouseOver="ShowTip(event, 'tt21', 'link21')" onMouseOut="HideTip('tt21')">crc11</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-11 value. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#crc.crc12" id=link22 onMouseOver="ShowTip(event, 'tt22', 'link22')" onMouseOut="HideTip('tt22')">crc12</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-12 value. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#crc.crc12_cdma2000" id=link23 onMouseOver="ShowTip(event, 'tt23', 'link23')" onMouseOut="HideTip('tt23')">crc12_cdma2000</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-12-CDMA2000 value. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#crc.crc13_bbc" id=link24 onMouseOver="ShowTip(event, 'tt24', 'link24')" onMouseOut="HideTip('tt24')">crc13_bbc</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-13-BBC value. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#crc.crc15_can" id=link25 onMouseOver="ShowTip(event, 'tt25', 'link25')" onMouseOut="HideTip('tt25')">crc15_can</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-15-CAN value. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#crc.crc15_mpt1327" id=link26 onMouseOver="ShowTip(event, 'tt26', 'link26')" onMouseOut="HideTip('tt26')">crc15_mpt1327</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-15-MPT1327 value. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#crc.crc16_arinc" id=link27 onMouseOver="ShowTip(event, 'tt27', 'link27')" onMouseOut="HideTip('tt27')">crc16_arinc</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-16-ARINC value. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#crc.crc16_ccitt" id=link28 onMouseOver="ShowTip(event, 'tt28', 'link28')" onMouseOut="HideTip('tt28')">crc16_ccitt</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-16-CCITT value. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#crc.crc16_cdma2000" id=link29 onMouseOver="ShowTip(event, 'tt29', 'link29')" onMouseOut="HideTip('tt29')">crc16_cdma2000</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-16-CDMA2000 value. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#crc.crc16_dect" id=link30 onMouseOver="ShowTip(event, 'tt30', 'link30')" onMouseOut="HideTip('tt30')">crc16_dect</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-16-CECT value. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#crc.crc16_t10_dif" id=link31 onMouseOver="ShowTip(event, 'tt31', 'link31')" onMouseOut="HideTip('tt31')">crc16_t10_dif</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-16-T10-DIF value. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#crc.crc16_dnp" id=link32 onMouseOver="ShowTip(event, 'tt32', 'link32')" onMouseOut="HideTip('tt32')">crc16_dnp</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-16-DNP value. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#crc.crc16_ibm" id=link33 onMouseOver="ShowTip(event, 'tt33', 'link33')" onMouseOut="HideTip('tt33')">crc16_ibm</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-16-IBM value. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#crc.crc17_can" id=link34 onMouseOver="ShowTip(event, 'tt34', 'link34')" onMouseOut="HideTip('tt34')">crc17_can</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-17-CAN value. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#crc.crc21_can" id=link35 onMouseOver="ShowTip(event, 'tt35', 'link35')" onMouseOut="HideTip('tt35')">crc21_can</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-21-CAN value. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#crc.crc24" id=link36 onMouseOver="ShowTip(event, 'tt36', 'link36')" onMouseOut="HideTip('tt36')">crc24</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-24 value. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#crc.crc24_radix_64" id=link37 onMouseOver="ShowTip(event, 'tt37', 'link37')" onMouseOut="HideTip('tt37')">crc24_radix_64</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-24-Radix-64 value. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#crc.crc30" id=link38 onMouseOver="ShowTip(event, 'tt38', 'link38')" onMouseOut="HideTip('tt38')">crc30</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-30 value. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#crc.crc32" id=link39 onMouseOver="ShowTip(event, 'tt39', 'link39')" onMouseOut="HideTip('tt39')">crc32</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-32 value. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#crc.crc32c" id=link40 onMouseOver="ShowTip(event, 'tt40', 'link40')" onMouseOut="HideTip('tt40')">crc32c</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-32C (Castagnoli) value. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#crc.crc32k" id=link41 onMouseOver="ShowTip(event, 'tt41', 'link41')" onMouseOut="HideTip('tt41')">crc32k</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-32K (Koopman) value. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#crc.crc32q" id=link42 onMouseOver="ShowTip(event, 'tt42', 'link42')" onMouseOut="HideTip('tt42')">crc32q</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-32Q value. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#crc.crc40_gsm" id=link43 onMouseOver="ShowTip(event, 'tt43', 'link43')" onMouseOut="HideTip('tt43')">crc40_gsm</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-40-GSM value. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#crc.crc64_ecma" id=link44 onMouseOver="ShowTip(event, 'tt44', 'link44')" onMouseOut="HideTip('tt44')">crc64_ecma</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-64-ECMA value. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#crc.crc64_iso" id=link45 onMouseOver="ShowTip(event, 'tt45', 'link45')" onMouseOut="HideTip('tt45')">crc64_iso</a></td><td class=SDescription><span class="static">static</span> Returns a CRC-64-ISO value. </td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>

<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="crc.Types"></a>Types</h3></div></div>

<div class="CType"><div class=CTopic><h3 class=CTitle><a name="crc.bs_type"></a>bs_type</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">typedef T bs_type[]</td></tr></table></blockquote><p>The bit stream type.&nbsp; The shorthand of the dynamic array of type <b>T</b>.</p></div></div></div>

<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="crc.Functions"></a>Functions</h3></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc"></a>crc</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[63:0] crc(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs,</td></tr><tr><td></td><td class="PType  prettyprint " nowrap>T[63:0]&nbsp;</td><td class="PParameter  prettyprint " nowrap>tap,</td></tr><tr><td></td><td class="PType  prettyprint " nowrap>int&nbsp;</td><td class="PParameter  prettyprint " nowrap>degree</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC value using the specified taps.&nbsp; The function supports up to 64-bit tap.&nbsp; See <a href="https://ghsi.de/CRC" class=LURL target=_top>this site</a> for how this function calculates the CRC.</p><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr><tr><td class=CDLEntry>tap</td><td class=CDLDescription>The bit vector representaion of a CRC polynomial.</td></tr><tr><td class=CDLEntry>degree</td><td class=CDLDescription>The degree of a CRC polynomial.</td></tr></table><h4 class=CHeading>Returns</h4><p>A calculated CRC value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit[15:0] crc16_ccitt_tap = 16'h1021;
bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc( bs, crc16_ccitt_tap, .degree( 16 ) ) == 16'hFEC5 );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc1"></a>crc1</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T crc1(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-1 value; also known as a parity bit.&nbsp; The CRC polynomial is:</p><img src="../images/crc1.png" width="37" height="14"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-1 value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc1( bs ) == 1'h1 );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc4_itu"></a>crc4_itu</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[3:0] crc4_itu(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-4-ITU value.&nbsp; The CRC polynomial is:</p><img src="../images/crc4_itu.png" width="74" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-4-ITU value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc4_itu( bs ) == 4'h7 );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc5_epc"></a>crc5_epc</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[4:0] crc5_epc(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-5-EPC value.&nbsp; The CRC polynomial is:</p><img src="../images/crc5_epc.png" width="81" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-5-EPC value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc5_epc( bs ) == 5'h0 );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc5_itu"></a>crc5_itu</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[4:0] crc5_itu(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-5-ITU value.&nbsp; The CRC polynomial is:</p><img src="../images/crc5_itu.png" width="119" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-5-ITU value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc5_itu( bs ) == 5'hE );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc5_usb"></a>crc5_usb</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[4:0] crc5_usb(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-5-USB value.&nbsp; The CRC polynomial is:</p><img src="../images/crc5_usb.png" width="81" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-5-USB value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc5_usb( bs ) == 5'hF );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc6_cdma2000_a"></a>crc6_cdma2000_a</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[5:0] crc6_cdma2000_a(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-6-CDMA2000-A value.&nbsp; The CRC polynomial is:</p><img src="../images/crc6_cdma2000_a.png" width="148" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-6-CDMA2000-A value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc6_cdma2000_a( bs ) == 6'h24 );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc6_cdma2000_b"></a>crc6_cdma2000_b</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[5:0] crc6_cdma2000_b(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-6-CDMA2000-B value.&nbsp; The CRC polynomial is:</p><img src="../images/crc6_cdma2000_b.png" width="111" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-6-CDMA2000-B value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc6_cdma2000_b( bs ) == 6'h20 );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc6_itu"></a>crc6_itu</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[5:0] crc6_itu(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-6-ITU value.&nbsp; The CRC polynomial is:</p><img src="../images/crc6_itu.png" width="74" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-6-ITU value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc6_itu( bs ) == 6'h9 );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc7"></a>crc7</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[6:0] crc7(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-7 value.&nbsp; The CRC polynomial is:</p><img src="../images/crc7.png" width="81" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-7 value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc7( bs ) == 7'h3F );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc7_mvb"></a>crc7_mvb</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[6:0] crc7_mvb(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-7-MVB value.&nbsp; The CRC polynomial is:</p><img src="../images/crc7_mvb.png" width="156" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-7-MVB value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc7_mvb( bs ) == 7'h4C );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc8"></a>crc8</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[7:0] crc8(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-8 value.&nbsp; The CRC polynomial is:</p><img src="../images/crc8.png" width="193" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-8 value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc8( bs ) == 8'hC7 );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc8_ccitt"></a>crc8_ccitt</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[7:0] crc8_ccitt(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-8-CCITT value.&nbsp; The CRC polynomial is:</p><img src="../images/crc8_ccitt.png" width="111" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-8-CCITT value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc8_ccitt( bs ) == 8'hF8 );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc8_dallas_maxim"></a>crc8_dallas_maxim</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[7:0] crc8_dallas_maxim(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-8-Dallas/Maxim value.&nbsp; The CRC polynomial is:</p><img src="../images/crc8_dallas_maxim.png" width="128" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-8-Dallas/Maxim value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc8_dallas_maxim( bs ) == 8'h85 );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc8_sae_j1850"></a>crc8_sae_j1850</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[7:0] crc8_sae_j1850(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-8-SAE-J1850 value.&nbsp; The CRC polynomial is:</p><img src="../images/crc8_sae_j1850.png" width="156" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-8-SAE-J1850 value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc8_sae_j1850( bs ) == 8'h7F );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc8_wcdma"></a>crc8_wcdma</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[7:0] crc8_wcdma(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-8-WCDMA value.&nbsp; The CRC polynomial is:</p><img src="../images/crc8_wcdma.png" width="186" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-8-WCDMA value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc8_wcdma( bs ) == 8'hF7 );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc10"></a>crc10</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[9:0] crc10(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-10 value.&nbsp; The CRC polynomial is:</p><img src="../images/crc10.png" width="192" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-10 value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc10( bs ) == 10'hB3 );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc10_cdma2000"></a>crc10_cdma2000</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[9:0] crc10_cdma2000(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-10-CDMA2000 value.&nbsp; The CRC polynomial is:</p><img src="../images/crc10_cdma2000.png" width="274" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-10-CDMA2000 value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc10_cdma2000( bs ) == 10'h2A );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc11"></a>crc11</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[10:0] crc11(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-11 value.&nbsp; The CRC polynomial is:</p><img src="../images/crc11.png" width="200" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-11 value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc11( bs ) == 11'h43A );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc12"></a>crc12</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[11:0] crc12(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-12 value.&nbsp; The CRC polynomial is:</p><img src="../images/crc12.png" width="199" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-12 value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc12( bs ) == 12'hBF9 );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc12_cdma2000"></a>crc12_cdma2000</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[11:0] crc12_cdma2000(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-12-CDMA2000 value.&nbsp; The CRC polynomial is:</p><img src="../images/crc12_cdma2000.png" width="280" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-12-CDMA2000 value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc12_cdma2000( bs ) == 12'h7C3 );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc13_bbc"></a>crc13_bbc</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[12:0] crc13_bbc(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-13-BBC value.&nbsp; The CRC polynomial is:</p><img src="../images/crc13_bbc.png" width="368" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-13-BBC value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc13_bbc( bs ) == 13'hAEA );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc15_can"></a>crc15_can</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[14:0] crc15_can(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-15-CAN value.&nbsp; The CRC polynomial is:</p><img src="../images/crc15_can.png" width="287" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-15-CAN value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc15_can( bs ) == 15'h6DDE );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc15_mpt1327"></a>crc15_mpt1327</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[14:0] crc15_mpt1327(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-15-MPT1327 value.&nbsp; The CRC polynomial is:</p><img src="../images/crc15_mpt1327.png" width="257" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-15-MPT1327 value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc15_mpt1327( bs ) == 15'h7E4E );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc16_arinc"></a>crc16_arinc</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[15:0] crc16_arinc(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-16-ARINC value.&nbsp; The CRC polynomial is:</p><img src="../images/crc16_arinc.png" width="243" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-16-ARINC value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc16_arinc( bs ) == 16'h18FB );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc16_ccitt"></a>crc16_ccitt</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[15:0] crc16_ccitt(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-16-CCITT value.&nbsp; The CRC polynomial is:</p><img src="../images/crc16_ccitt.png" width="132" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-16-CCITT value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc16_ccitt( bs ) == 16'hFEC5 );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc16_cdma2000"></a>crc16_cdma2000</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[15:0] crc16_cdma2000(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-16-CDMA2000 value.&nbsp; The CRC polynomial is:</p><img src="../images/crc16_cdma2000.png" width="324" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-16-CDMA2000 value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc16_cdma2000( bs ) == 16'hCEEA );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc16_dect"></a>crc16_dect</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[15:0] crc16_dect(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-16-CECT value.&nbsp; The CRC polynomial is:</p><img src="../images/crc16_dect.png" width="206" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-16-DECT value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc16_dect( bs ) == 16'h7511 );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc16_t10_dif"></a>crc16_t10_dif</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[15:0] crc16_t10_dif(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-16-T10-DIF value.&nbsp; The CRC polynomial is:</p><img src="../images/crc16_t10_dif.png" width="392" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-16-T10-DIF value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc16_t10_dif( bs ) == 16'h5213 );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc16_dnp"></a>crc16_dnp</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[15:0] crc16_dnp(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-16-DNP value.&nbsp; The CRC polynomial is:</p><img src="../images/crc16_dnp.png" width="375" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-16-DNP value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc16_dnp( bs ) == 16'hF0AD );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc16_ibm"></a>crc16_ibm</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[15:0] crc16_ibm(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-16-IBM value.&nbsp; The CRC polynomial is:</p><img src="../images/crc16_ibm.png" width="132" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-16-IBM value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc16_ibm( bs ) == 16'hB17F );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc17_can"></a>crc17_can</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[16:0] crc17_can(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-17-CAN value.&nbsp; The CRC polynomial is:</p><img src="../images/crc17_can.png" width="368" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-17-CAN value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc17_can( bs ) == 17'h42B0 );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc21_can"></a>crc21_can</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[20:0] crc21_can(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-21-CAN value.&nbsp; The CRC polynomial is:</p><img src="../images/crc21_can.png" width="294" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-21-CAN value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc21_can( bs ) == 21'h1A3C3F );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc24"></a>crc24</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[23:0] crc24(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-24 value.&nbsp; The CRC polynomial is:</p><img src="../images/crc24.png" width="547" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-24 value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc24( bs ) == 24'h4FAC88 );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc24_radix_64"></a>crc24_radix_64</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[23:0] crc24_radix_64(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-24-Radix-64 value.&nbsp; The CRC polynomial is:</p><img src="../images/crc24_radix_64.png" width="530" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-24-Radix-64 value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc24_radix_64( bs ) == 24'h5EFC5F );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc30"></a>crc30</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[29:0] crc30(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-30 value.&nbsp; The CRC polynomial is:</p><img src="../images/crc30.png" width="536" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-30 value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc30( bs ) == 30'h3FA4F577 );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc32"></a>crc32</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[31:0] crc32(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-32 value.&nbsp; The CRC polynomial is:</p><img src="../images/crc32.png" width="547" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-32 value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc32( bs ) == 32'h257491D0 );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc32c"></a>crc32c</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[31:0] crc32c(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-32C (Castagnoli) value.&nbsp; The CRC polynomial is:</p><img src="../images/crc32c.png" width="572" height="36"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-32C (Castagnoli) value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc32c( bs ) == 32'hC68BEAB1 );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc32k"></a>crc32k</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[31:0] crc32k(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-32K (Koopman) value.&nbsp; The CRC polynomial is:</p><img src="../images/crc32k.png" width="572" height="36"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-32K (Koopman) value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc32k( bs ) == 32'hE9D7E7E8 );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc32q"></a>crc32q</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[31:0] crc32q(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-32Q value.&nbsp; The CRC polynomial is:</p><img src="../images/crc32q.png" width="449" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-32Q value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc32q( bs ) == 32'hC604B994 );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc40_gsm"></a>crc40_gsm</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[39:0] crc40_gsm(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-40-GSM value.&nbsp; The CRC polynomial is:</p><img src="../images/crc40_gsm.png" width="220" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-40-GSM value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc40_gsm( bs ) == 40'hAF3E6E680C );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc64_ecma"></a>crc64_ecma</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[63:0] crc64_ecma(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-64-ECMA value.&nbsp; The CRC polynomial is:</p><img src="../images/crc64_ecma.png" width="572" height="55"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-64-ECMA value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc64_ecma( bs ) == 64'h1AD51F768A8B4D1D );</pre></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="crc.crc64_iso"></a>crc64_iso</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[63:0] crc64_iso(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Returns a CRC-64-ISO value.&nbsp; The CRC polynomial is:</p><img src="../images/crc64_iso.png" width="155" height="16"><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bs</td><td class=CDLDescription>An input bit stream.</td></tr></table><h4 class=CHeading>Returns</h4><p>A CRC-64-ISO value.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">bit bs[];     // input order ---------------------------------&gt;
bs = new[80]( '{ 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b0, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0,
                 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b1, 1'b0, 1'b0 } );
assert( crc#(bit)::crc64_iso( bs ) == 64'h41982B4D80015DEB );</pre></blockquote></div></div></div>

</div><!--Content-->



<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt1"><div class=CClass><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>virtual class crc #(</td><td class="PType  prettyprint " nowrap>type&nbsp;</td><td class="PParameter  prettyprint " nowrap>T</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;=&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%> bit</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="virtual">virtual</span> Provides functions to calculate a variety of CRC (cyclic redundancy check) values from a bit stream.</div></div><div class=CToolTip id="tt2"><div class=CType><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">typedef T bs_type[]</td></tr></table></blockquote>The bit stream type. </div></div><div class=CToolTip id="tt3"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[63:0] crc(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs,</td></tr><tr><td></td><td class="PType  prettyprint " nowrap>T[63:0]&nbsp;</td><td class="PParameter  prettyprint " nowrap>tap,</td></tr><tr><td></td><td class="PType  prettyprint " nowrap>int&nbsp;</td><td class="PParameter  prettyprint " nowrap>degree</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC value using the specified taps. </div></div><div class=CToolTip id="tt4"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T crc1(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-1 value; also known as a parity bit. </div></div><div class=CToolTip id="tt5"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[3:0] crc4_itu(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-4-ITU value. </div></div><div class=CToolTip id="tt6"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[4:0] crc5_epc(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-5-EPC value. </div></div><div class=CToolTip id="tt7"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[4:0] crc5_itu(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-5-ITU value. </div></div><div class=CToolTip id="tt8"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[4:0] crc5_usb(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-5-USB value. </div></div><div class=CToolTip id="tt9"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[5:0] crc6_cdma2000_a(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-6-CDMA2000-A value. </div></div><div class=CToolTip id="tt10"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[5:0] crc6_cdma2000_b(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-6-CDMA2000-B value. </div></div><div class=CToolTip id="tt11"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[5:0] crc6_itu(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-6-ITU value. </div></div><div class=CToolTip id="tt12"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[6:0] crc7(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-7 value. </div></div><div class=CToolTip id="tt13"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[6:0] crc7_mvb(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-7-MVB value. </div></div><div class=CToolTip id="tt14"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[7:0] crc8(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-8 value. </div></div><div class=CToolTip id="tt15"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[7:0] crc8_ccitt(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-8-CCITT value. </div></div><div class=CToolTip id="tt16"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[7:0] crc8_dallas_maxim(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-8-Dallas/Maxim value. </div></div><div class=CToolTip id="tt17"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[7:0] crc8_sae_j1850(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-8-SAE-J1850 value. </div></div><div class=CToolTip id="tt18"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[7:0] crc8_wcdma(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-8-WCDMA value. </div></div><div class=CToolTip id="tt19"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[9:0] crc10(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-10 value. </div></div><div class=CToolTip id="tt20"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[9:0] crc10_cdma2000(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-10-CDMA2000 value. </div></div><div class=CToolTip id="tt21"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[10:0] crc11(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-11 value. </div></div><div class=CToolTip id="tt22"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[11:0] crc12(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-12 value. </div></div><div class=CToolTip id="tt23"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[11:0] crc12_cdma2000(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-12-CDMA2000 value. </div></div><div class=CToolTip id="tt24"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[12:0] crc13_bbc(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-13-BBC value. </div></div><div class=CToolTip id="tt25"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[14:0] crc15_can(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-15-CAN value. </div></div><div class=CToolTip id="tt26"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[14:0] crc15_mpt1327(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-15-MPT1327 value. </div></div><div class=CToolTip id="tt27"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[15:0] crc16_arinc(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-16-ARINC value. </div></div><div class=CToolTip id="tt28"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[15:0] crc16_ccitt(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-16-CCITT value. </div></div><div class=CToolTip id="tt29"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[15:0] crc16_cdma2000(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-16-CDMA2000 value. </div></div><div class=CToolTip id="tt30"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[15:0] crc16_dect(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-16-CECT value. </div></div><div class=CToolTip id="tt31"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[15:0] crc16_t10_dif(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-16-T10-DIF value. </div></div><div class=CToolTip id="tt32"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[15:0] crc16_dnp(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-16-DNP value. </div></div><div class=CToolTip id="tt33"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[15:0] crc16_ibm(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-16-IBM value. </div></div><div class=CToolTip id="tt34"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[16:0] crc17_can(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-17-CAN value. </div></div><div class=CToolTip id="tt35"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[20:0] crc21_can(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-21-CAN value. </div></div><div class=CToolTip id="tt36"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[23:0] crc24(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-24 value. </div></div><div class=CToolTip id="tt37"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[23:0] crc24_radix_64(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-24-Radix-64 value. </div></div><div class=CToolTip id="tt38"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[29:0] crc30(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-30 value. </div></div><div class=CToolTip id="tt39"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[31:0] crc32(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-32 value. </div></div><div class=CToolTip id="tt40"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[31:0] crc32c(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-32C (Castagnoli) value. </div></div><div class=CToolTip id="tt41"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[31:0] crc32k(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-32K (Koopman) value. </div></div><div class=CToolTip id="tt42"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[31:0] crc32q(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-32Q value. </div></div><div class=CToolTip id="tt43"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[39:0] crc40_gsm(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-40-GSM value. </div></div><div class=CToolTip id="tt44"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[63:0] crc64_ecma(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-64-ECMA value. </div></div><div class=CToolTip id="tt45"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function T[63:0] crc64_iso(</td><td class="PType  prettyprint " nowrap>bs_type&nbsp;</td><td class="PParameter  prettyprint " nowrap>bs</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Returns a CRC-64-ISO value. </div></div><!--END_ND_TOOLTIPS-->

<script language=JavaScript><!--
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>